import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import articleList from '@/components/list/articleList'
import resourcesList from '@/components/list/resourcesList'
import articleDetail from '@/components/detail/articleDetail'
import search from '@/components/search'
import commentbox from '@/components/commentbox'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      title:'首页',
      component: index
    },
    {
      path: '/articleList/:id',
      name: 'articleList',
      component: articleList
    },
    {
      path: '/articleDetail/:id',
      name: 'articleDetail',
      component: articleDetail
    },
    {
      path: '/resourcesList/:id',
      name: 'resourcesList',
      component: resourcesList
    },
    {
      path: '/search/:searchKey',
      name: 'search',
      component: search
    }
  ]
})
